<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>hello world</title>
    <link rel="stylesheet/less" type="text/css" href="less/base.less"/>
    <link rel="stylesheet/less" type="text/css" href="less/test.less"/>
    <script src="js/jquery.js"></script>
    <script src="js/less.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/index.js" ></script>
</head>
<body>
	<div class="box" style="width: 200px;height: 100px;"></div>
	
	<input id="inputTest" type="button" value="测试"   />
</body>
</html>
<script type="text/javascript">
    function copy_code(copyText) 
    {
        if (window.clipboardData) 
        {
        	alert('copy成功！');
            window.clipboardData.setData("Text", copyText)
        } 
//      else 
//      {
//          var flashcopier = 'flashcopier';
//          if(!document.getElementById(flashcopier)) 
//          {
//            var divholder = document.createElement('div');
//            divholder.id = flashcopier;
//            document.body.appendChild(divholder);
//          }
//          document.getElementById(flashcopier).innerHTML = '';
//          var divinfo = '<embed src="../js/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(copyText)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
//          document.getElementById(flashcopier).innerHTML = divinfo;
//      }
      alert(1);
    }
    
    $("#inputTest").on("click",function(){
    	copy_code("你好！你好！你好！你好！")
    });
    </script>
    
    